import {WeaTools} from 'ecCom'

//项目数据
export const getProjectDatas = params => {
	return WeaTools.callApi('/api/proj/portal/getProjectDatas', 'POST', params);
}

//项目分组表单
export const getPrjGroupForm = params => {
	return WeaTools.callApi('/api/proj/portal/getPrjGroupForm', 'POST', params);
}

//项目分组操作
export const doPrjGroupOperation = params => {
	return WeaTools.callApi('/api/proj/portal/doPrjGroupOperation', 'POST', params);
}

//获取项目动态信息
export const getPortalProjectDynamicInfo = params => {
	return WeaTools.callApi('/api/proj/portal/getPortalProjectDynamicInfo', 'POST', params);
}

//项目日报操作
export const doPortalProjectDailyOperation = params => {
	return WeaTools.callApi('/api/proj/portal/doPortalProjectDailyOperation', 'POST', params);
}

//获取项目日报数据
export const getPortalProjectDailyDatas = params => {
	return WeaTools.callApi('/api/proj/portal/getPortalProjectDailyDatas', 'POST', params);
}

//获取项目门户项目卡片数据
export const getPortalProjectInfo = params => {
	return WeaTools.callApi('/api/proj/portal/getPortalProjectInfo', 'GET', params);
}

//任务执行条件
export const getTaskCondition = params => {
	return WeaTools.callApi('/api/proj/pctask/taskcondition', 'GET', params);
}

//任务执行列表
export const getTaskExecuteList = params => {
	return WeaTools.callApi('/api/proj/portal/getProtalTaskList', 'GET', params);
}

//任务分组表单
export const getTaskGroupForm = params => {
	return WeaTools.callApi('/api/proj/portal/getTaskGroupForm', 'POST', params);
}

//任务分组操作
export const doTaskGroupOperation = params => {
	return WeaTools.callApi('/api/proj/portal/doTaskGroupOperation', 'POST', params);
}

//获取右键菜单
export const getRightMenu = params => {
	return WeaTools.callApi('/api/proj/portal/getRightMenu', 'POST', params);
}

//获取项目搜索分组数据
export const getPrjSearchDatas = params => {
	return WeaTools.callApi('/api/proj/portal/getPrjSearchDatas', 'POST', params);
}